using BLToolkit.Data;
using BLToolkit.DataAccess;

using EMan.Common.EnterpriseStructure;

namespace EMan.DAL.Firebird
{
  public abstract class EmployeeWorkStateDalc : Dalc< EmployeeWorkState >
  {
    [ScalarSource(ScalarSourceType.ReturnValue)]
    public abstract int Insert( [Direction.Output("Id")] EmployeeWorkState workState );

    [SqlQuery("select id, name, state from EmployeeWorkState where id = @id")]
    public abstract EmployeeWorkState Get( int id );

    [SqlQuery("delete from EmployeeWorkState where id = @id")]
    public abstract void Delete( int id );
  }
}